package com.baoyi.widget;

import java.util.List;

import android.content.Context;
import android.util.AttributeSet;
import android.widget.LinearLayout;

import com.baoyi.doamin.Comments;

public class MyListView extends LinearLayout {

	public MyListView(Context context, AttributeSet attrs) {
		super(context, attrs);
		setOrientation(LinearLayout.VERTICAL);
	}

	public void setDatas(List<Comments> comments) {
		if (null != comments) {
			for (Comments comments2 : comments) {
				this.addView(new CommentsItemWidget(getContext(), comments2));
			}
		}

	}

}
